package org.metasketch.demo.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;


@XStreamAlias("coordination-step")
public class CoordinationStep extends TransactionStep {

	@XStreamAsAttribute
	CoordinationStepKind kind;
	
	@XStreamAsAttribute
	@XStreamAlias("self-activated")
	boolean selfActivated = false;
	
	public CoordinationStep(){
		
	}

	public CoordinationStep(CoordinationStepKind kind){
		this.kind = kind;
	}

	
	public CoordinationStepKind getKind() {
		return kind;
	}

	public void setKind(CoordinationStepKind type) {
		this.kind = type;
	}

	public boolean isSelfActivated() {
		return selfActivated;
	}

	public void setSelfActivated(boolean selfActivated) {
		this.selfActivated = selfActivated;
	}

}
